
function objToStr(obj) {
    let arr = [];
    for (let key in obj) {
        arr.push(key + '=' + obj[key]);

    }
    let res = arr.join('&')
    return res
}
objToStr({username:'hxc',password:'125'})
let arr=[4,8,2,6]
    let res=arr.map(item=>{
        return    `<h1>${{item}}</h1>`
    })
    console.log(res);
    
    // import ('../css/index.css')
    import('../sass/index.scss')



// import img from '../images/13.png';
// console.log(img);

// let imgEle = document.createElement('img');
// imgEle.src = img;
// document.body.appendChild(imgEle);


// let xhr2=new XMLHttpRequest()
// xhr2.open('get','/test/user/check')
// xhr2.send()
// xhr2.onload=function(){
//     console.log(xhr2.responseText);
// }